/**
 * Created by Administrator on 2016/10/15.
 */

var ali=document.getElementById('tableOne').getElementsByTagName('a');
var positionBox=document.getElementsByClassName('positionBox')[0];
var lili=positionBox.getElementsByTagName('li');
for(var i=0;i<ali.length;i++)
{
    ali.index=i;
    ali[i].onclick=function () {
        positionBox.style.top=event.clientY+'px';
        positionBox.style.left=event.clientX+25+'px';
        positionBox.style.display='block';
        lili[0].innerHTML="dsgsgg";
        return this.index;
    }
    
}
var icon=document.getElementsByClassName('icon')[0];
icon.onclick=function () {
    positionBox.style.display='none';
}




